#include <iostream>
using namespace std;
class Cuboid{
    double length;
    double width;
    double heigth;
public:
    void setCuboid(double length,double width,double heigth){
        this->length=length;
        this->width=width;
        this->heigth=heigth;
    }
    double getVolume(){
        return length*width*heigth;
    }
};

#define N 3

int main(){
    Cuboid cuboids[N];
    for(int i=0;i<N;i++){
        int length,width,heigth;
        cout<<"请输入第"<<(i+1)<<"个长方柱的长宽高："<<endl;
        cin>>length>>width>>heigth;
        cuboids[i].setCuboid(length,width,heigth);
    }
    for(int i=0;i<N;i++){
        cout<<"第"<<(i+1)
            <<"个长方柱的体积为："
            <<cuboids[i].getVolume()<<endl;
    }
    return 0;
}